package com.enn.demo.starter.run;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 *  starter
 *
 * @author anyone
 * @since Wed May 19 09:21:36 CST 2021
 */
@SpringBootApplication(scanBasePackages = { "top.rdfa", "com.enn.demo" })
@EnableAspectJAutoProxy(proxyTargetClass = true)
@EnableTransactionManagement
@MapperScan("com.enn.demo.dal.mapper")
public class ApplicationRunner implements CommandLineRunner{
    private static final Logger logger=LoggerFactory.getLogger(ApplicationRunner.class);

    public static void main(String[] args) {
        SpringApplication.run(ApplicationRunner.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        logger.info("app start");
    }
}
